import {createRouter, createWebHashHistory} from "vue-router";

const router = createRouter({
    //使用hash路由
    history: createWebHashHistory(),
    //配置路由
    routes:[
        //默认路由
        {
            path: '/',
            component: ()=>import('../pages/myHome/MyHome')
        },
        {
            path: '/home',
            component: ()=>import('../pages/myHome/MyHome')
        },
        {
            path: '/cart',
            component: ()=>import('../pages/myCart/MyCart')
        },
        {
            path: '/order',
            component: ()=>import('../pages/myOrder/MyOrder')
        },
        {
            path: '/mine',
            component: ()=>import('../pages/mine/Mine')
        },
        {
            path: '/myStore',
            component: ()=>import('../pages/myStore/MyStore')
        }
    ]
})
export default router;